package com.ecommerce.dal.service;

import java.util.List;

import com.ecommerce.dal.entity.CompanyCommunication;
import com.ecommerce.dal.entity.UserCommunication;

public interface ICommunicationManagementService {
	/**
	 * @param Long userID
	 * @param Integer communicationID
	 */
	public void saveUserCommunication(UserCommunication userCommunication);
	/**
	 * @param Long companyID
	 * @param Integer communicationID
	 */
	public void saveCompanyCommunication(CompanyCommunication companyCommunication);
	/**
	 * @return list of communications for certain user
	 */
	public List<UserCommunication> retrieveAllUserCommunication(long userId);
	
	public List<UserCommunication> retrieveAllUserCommunication(String userName);
	
	/**
	 * @return list of communications for certain company
	 */
	public List<CompanyCommunication> retrieveAllCompanyCommunication(long companyId);
	public List<CompanyCommunication> retrieveAllCompanyCommunication(long companyId,int communicationId);
	
	
	
	void updateCompanyCommunication(CompanyCommunication companyCommunication);
	void updateUserCommunication(UserCommunication userCommunication);
	void deleteCompanyCommunication(CompanyCommunication companyCommunication);
	void deleteUserCommunication(UserCommunication userCommunication);
	


}
